package com.njsoft.mydemotest;

import android.content.Intent;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.github.chrisbanes.photoview.PhotoView;
import com.ldoublem.loadingviewlib.view.LVCircularSmile;
import com.njsoft.mydemotest.pic.SingleViewActivity;
import com.njsoft.mydemotest.pic.tools.RGlideUtil;

public class MainActivity extends AppCompatActivity {
    private PhotoView photoView;
    LVCircularSmile smile;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        photoView = findViewById(R.id.PhotoView);
        String url = "https://img5.duitang.com/uploads/item/201404/11/20140411214939_XswXa.jpeg";
        //显示图片
        RGlideUtil.setImage(this, url, photoView);
//        smile=findViewById(R.id.lv_circularSmile);
//        smile.setViewColor(Color.rgb(144, 238, 146));
//        smile.startAnim(1000);
//        ProgressUtil.showProgressDialog(this,"正在加载中");
    }

    public void CheckMe(View view) {
        Intent intent = new Intent(this, SingleViewActivity.class);
        startActivity(intent);
//        smile.stopAnim();
//        ProgressUtil.dismissProgressDialog();
    }

    public void FragmentDialog(View view) {
        new GoodAttributeFragmentDialog()
                .show(getFragmentManager(), "dialog_fragment");
    }
}
